package com.oa.controller;

import com.oa.pojo.SubjectType;
import com.oa.service.SubjectTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@CrossOrigin
@ResponseBody
@Controller
public class SubjectTypeConntroller {

    @Autowired
    private SubjectTypeService subjectTypeService;

    @RequestMapping(value = "/getSubjectTypeList")
    public List<SubjectType> getSubjectTypeList() {
        return subjectTypeService.getSubjectTypeList();
    }

}
